import requests from '@/utils/request'

// 请求分组下的公式
// export const GroupFromulas = (group) => {
//   return  requests({
//     url: '/v1/calculate/formula/groupFormulaList/',
//     method: 'get',
//     params: { group }
//   })
// }

// 请求品种下的公式
export const VareityFormulas = (ven) => {
  return  requests({
    url: '/v1/calculate/formula/varietyFormulaList/',
    method: 'get',
    params: { ven }
  })
}

// 某个公式重新计算
export const ReCalculateFormula = (data) => {
  return  requests({
    url: '/v1/calculate/formula/reCalculate/',
    method: 'post',
    data,
  }) 
}